package simple.jsf2;
 
import java.io.Serializable;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Out;
import static org.jboss.seam.ScopeType.APPLICATION;
 
//@ManagedBean(name="demoService")
//@ApplicationScoped  
@Name("demoService")
@Scope(APPLICATION)
public class Service implements Serializable{ 
 
  public String reverse(String name) {   
    return new StringBuffer(name).reverse().toString().toLowerCase();
  }
}